﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WorkModel;

namespace IRepository
{
   public interface IJueSeintfas
    {
        //--------------------------------角色表------------------------------------
        /// <summary>
        /// 角色显示
        /// </summary>
        /// <returns></returns>
        public List<Juese> JueSeShow(string name, int cIndex, int pSize, out int Count);
        /// <summary>
        /// 删除角色
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int JuSerDelete(string id);
        /// <summary>
        /// 添加角色
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int JuSerAdd(Juese m);
        /// <summary>
        /// 反填角色
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Juese JuSerFan(int id);
        /// <summary>
        /// 修改用户
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int JuSerUpt(Juese m);
        //-----------------------------系统表--------------------------
        /// <summary>
        /// 系统表显示
        /// </summary>
        /// <param name="Begintime"></param>
        /// <param name="Overtime"></param>
        /// <param name="cIndex"></param>
        /// <param name="pSize"></param>
        /// <param name="Count"></param>
        /// <returns></returns>
        public List<Xitong> XTShow(DateTime Begintime, DateTime Overtime, int cIndex, int pSize, out int Count);
        /// <summary>
        /// 系统表删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int XiTongDelete(string id);
        /// <summary>
        ///修改状态1 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int XiTongShi1(string id);
        /// <summary>
        ///修改状态0 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int XiTongShi0(string id);
        public int XiTongAdd(Xitong m);
        public Xitong XiTongFan(int id);
        public int XiTongUpt(Xitong m);
        //-----------------------------字典表--------------------------
        /// <summary>
        /// 字典表显示+查询+分页
        /// </summary>
        /// <param name="name"></param>
        /// <param name="cIndex"></param>
        /// <param name="pSize"></param>
        /// <param name="Count"></param>
        /// <returns></returns>
        public List<ZiDian> ZDShow(string name,int cIndex,int pSize,out int Count);
        /// <summary>
        /// 字典表添加
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int ZDAdd(ZiDian m);
        /// <summary>
        /// 字典表修改
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int ZDUpt(ZiDian m);
        /// <summary>
        /// 字典表反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ZiDian ZDFan(int id);
        /// <summary>
        /// 字典表删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int ZDDelete(string id);
        /// <summary>
        /// 字典表删除(批删)
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int ZDDeleteAll(string id);

        //-------------------请假表------------------------
        /// <summary>
        /// 请假显示
        /// </summary>
        /// <param name="Lbegintime"></param>
        /// <param name="Lovertime"></param>
        /// <param name="cIndex"></param>
        /// <param name="pSize"></param>
        /// <param name="Count"></param>
        /// <returns></returns>
        public List<Leave> LeaveShow( string bh, /*DateTime Lbegintime,DateTime Lovertime,*/int cIndex,int pSize,out int Count);
        /// <summary>
        /// 添加请假
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int LeaveAdd(Leave m);
        /// <summary>
        /// 修改请假
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int LeaveUpt(Leave m);
        /// <summary>
        /// 请假反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Leave LeaveFan(int id);
        /// <summary>
        /// 删除请假条
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int LeaveDelete(string id);























    }
}
